package com.chapter10.static_.details;


public class static_detail3 {
    //类方法中无this参数，普通方法隐含this
    private int a;

    public static void say(int a) {
//        this.a =a; 报错
        System.out.println("Hello World");
    }

    public void say2(int a){
        this.a = a;
        System.out.println("Hello World2");
    }

}

//类方法可通过类名或对象名调用(不演示)



